using System;
using System.Collections.Generic;
using usm.SolDev.Common;
using System.Text;
using System.Xml.Serialization;

namespace usm.SolDev.Common.Config
{
    /// <summary>
    ///     Keep system settings
    /// </summary>
    [Serializable]
    public class SystemSettings : Configuration
    {
        #region Private properties
        private SQLConnectionString sqlConnection = new SQLConnectionString(true);
        private long sqlCommandTimeout = 30;
        #endregion

        /// <summary>
        ///     Hold SQL connection string to database
        /// </summary>
        [XmlElementAttribute(IsNullable = false)]
        public SQLConnectionString SQLConnection
        {
            get { return sqlConnection; }
            set { sqlConnection = value; }
        }

        /// <summary>
        ///     Timeout expiration for SQL command
        /// </summary>
        [XmlAttributeAttribute(DataType = "long")]
        public long SQLCommandTimeout
        {
            get { return sqlCommandTimeout; }
            set { sqlCommandTimeout = value; }
        }
    }
}
